package com.five.admin.server.impl;

import com.five.admin.server.BannerService;
import com.five.pojo.entity.Banner;
import com.five.service.BannerRpcService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;
import java.util.List;

@DubboService
public class BannerRpcServiceImpl implements BannerRpcService {

    @Resource
    private BannerService bannerService;
    @Override
    public List<Banner> queryAllByPosition(Integer position) {
       return bannerService.findBannerByPosition(position);
    }
}
